<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%><head>
	<title><fmt:message key="document" /></title>
</head>
<body>
	<table class="show">
		<tbody>
			<tr>
				<th><fmt:message key="document_accountId" /></th>
				<td>
					<spring:bind path="document.account">
						<spring:transform value="${document.account}" var="account"/>
					</spring:bind>
					<tags:a href="/domain/account/show/${document.account.primaryKey}" text="${account}" cssClass="ajaxLink"/>
				</td>
			</tr>
			<tr class="odd">
				<th><fmt:message key="document_documentContentType" /></th>
				<td>
					<spring:eval expression="document.documentContentType"/>
				</td>
			</tr>
			<tr>
				<th><fmt:message key="document_documentSize" /></th>
				<td>
					<spring:eval expression="document.documentSize"/>
				</td>
			</tr>
			<tr class="odd">
				<th><fmt:message key="document_documentFileName" /></th>
				<td>
					<spring:eval expression="document.documentFileName"/>
				</td>
			</tr>
			<tr>
				<th><fmt:message key="document_documentBinary" /></th>
				<td>
					<tags:a href="/domain/document/download/documentBinary/${document.primaryKey}/${document.documentFileName}" icon="download"/>
				</td>
			</tr>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="2">
					<tags:a href="/domain/document/update/${document.primaryKey}" key="crud.edit.button" cssClass="ajaxLink" icon="edit"/>
					<tags:a href="/domain/document/createForm" key="crud.create.button" cssClass="ajaxLink" icon="add"/>
					<tags:a href="/domain/document/delete/${document.primaryKey}" key="crud.delete.button" cssClass="ajaxModal" icon="delete"/>
				</td>
			</tr>
		</tfoot>
	</table>
</body>
